package com.tyk.bookstore.back.system.model.type;

import com.fasterxml.jackson.annotation.JsonValue;
import com.tyk.bookstore.back.common.core.model.type.BaseEnum;

/**
 * @author tyk
 * @description 用户状态：0可用、1禁用、2已注销
 */
public enum UserState implements BaseEnum {

    ABLE(0), DISABLE(1), CANCELED(2);

    @Override
    public Integer value() {
        return this.value;
    }

    UserState(Integer value) {
        this.value = value;
    }

    @JsonValue
    private final Integer value;

}
